﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace PhilipService.Entity
{
    public class MessageType {
        public const string UserEndCall = "endphilipsUser";
        public const string UserCall = "philipsCustomer";
    }

    [DataContract]
    public class BaseMessage {
        [DataMember(Name = "type")]
        public string Type { get; set; }
    }

    [DataContract]
    public class CustomerSupportRequest : BaseMessage
    {
        [DataMember(Name = "customerid")]
        public long CustomerId { get; set; }

        [DataMember(Name = "name")]
        public string Name { get; set; }

        [DataMember(Name = "information")]
        public string Information { get; set; }

        [DataMember(Name = "userid")]
        public string UserId { get; set; }

        [DataMember(Name = "serviceid")]
        public long ServiceId { get; set; }

        [DataMember(Name = "deviceid")]
        public string DeviceId { get; set; }

        [DataMember(Name = "fd")]
        public long FD { get; set; }
    }

    [DataContract]
    public class UserCancelMessage : BaseMessage {
        [DataMember(Name = "customerid")]
        public long CustomerId { get; set; }
    }

    [DataContract]
    public class SupportCallResponse
    {
        [DataMember(Name = "type")]
        public string Type { get; set; }

        [DataMember(Name = "userid")]
        public string UserId { get; set; }
    }

    [DataContract]
    public class KickUserRequest
    {
        [DataMember(Name = "type")]
        public string Type { get; set; }

        [DataMember(Name = "userid")]
        public string UserId { get; set; }

        [DataMember(Name = "serviceid")]
        public long ServiceId { get; set; }
    }
}
